FHIR IG analytics| Package | au.gov.digitalhealth.cc |
| Resource Type | StructureDefinition |
| Id | StructureDefinition-medication-formula-string.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/AuDigitalHealth/common-components/StructureDefinition-medication-formula-string.html |
| URL | http://digitalhealth.gov.au/fhir/cc/StructureDefinition/medication-formula-string |
| Version | 26.0.0 |
| Status | draft |
| Date | 2026-07-14T04:17:55+00:00 |
| Name | Medication_Formula_String |
| Title | Medication Formula String |
| Realm | au |
| Description | Captures compounded medication formulas from CDA entry relationships to provide formula information in FHIR Medication resources for the PCEHR Prescription and Dispense View. |
| Purpose | The purpose of this extension is to carry compounded medication formula text from CDA sources when equivalent structured representation is not available in the base FHIR Medication model. |
| Copyright | This content is licensed under a Creative Commons Attribution 4.0 International License. See [https://creativecommons.org/licenses/by/4.0/](https://creativecommons.org/licenses/by/4.0/) |
| Type | Extension |
| Kind | complex-type |
No resources found
No resources found
| Resource | Version |
|---|---|
| au.gov.digitalhealth.cc#current:Medication/medication-cda-extensions-example | R4 |
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureDefinition medication-formula-string
| Name | Flags | Card. | Type | Description & Constraints |
|---|---|---|---|---|
![]() | 0..* | Extension(4.0.1) | Medication Formula String | |
![]() ![]() | 0..0 | Extension | ||
![]() ![]() | 1..1 | uri | "http://digitalhealth.gov.au/fhir/cc/StructureDefinition/medication-formula-string" | |
![]() ![]() | 0..1 | string | Medication formula text | |
{
"resourceType": "StructureDefinition",
"id": "medication-formula-string",
"text": {
"status": "extensions",
"div": "<!-- snip (see above) -->"
},
"url": "http://digitalhealth.gov.au/fhir/cc/StructureDefinition/medication-formula-string",
"version": "26.0.0",
"name": "Medication_Formula_String",
"title": "Medication Formula String",
"status": "draft",
"experimental": false,
"date": "2026-07-14T04:17:55+00:00",
"publisher": "Australian Digital Health Agency",
"contact": [
{
"name": "Australian Digital Health Agency",
"telecom": [
{
"system": "url",
"value": "https://www.digitalhealth.gov.au/"
},
{
"system": "email",
"value": "help@digitalhealth.gov.au"
}
]
},
{
"name": "Australian Digital Health Agency",
"telecom": [
{
"system": "email",
"value": "mailto:help@digitalhealth.gov.au",
"use": "work"
}
]
}
],
"description": "Captures compounded medication formulas from CDA entry relationships to provide formula information in FHIR Medication resources for the PCEHR Prescription and Dispense View.",
"jurisdiction": [
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "AU",
"display": "Australia"
}
]
}
],
"purpose": "The purpose of this extension is to carry compounded medication formula text from CDA sources when equivalent structured representation is not available in the base FHIR Medication model.",
"copyright": "This content is licensed under a Creative Commons Attribution 4.0 International License. See [https://creativecommons.org/licenses/by/4.0/](https://creativecommons.org/licenses/by/4.0/)",
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
}
],
"kind": "complex-type",
"abstract": false,
"context": [
{
"type": "element",
"expression": "Medication"
}
],
"type": "Extension",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
"derivation": "constraint",
"snapshot": {
"extension": [
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
"valueString": "4.0.1"
}
],
"element": [
{
"id": "Extension",
"path": "Extension",
"short": "Medication Formula String",
"definition": "Captures compounded medication formulas from CDA entry relationships to provide formula information in FHIR Medication resources for the PCEHR Prescription and Dispense View.",
"min": 0,
"max": "*",
"base": {
"path": "Extension",
"min": 0,
"max": "*"
},
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"
}
],
"isModifier": false
},
{
"id": "Extension.id",
"path": "Extension.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "Extension.extension",
"path": "Extension.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "0",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "Extension.url",
"path": "Extension.url",
"representation": [
"xmlAttr"
],
"short": "identifies the meaning of the extension",
"definition": "Source of the definition for the extension code - a logical name or a URL.",
"comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
"min": 1,
"max": "1",
"base": {
"path": "Extension.url",
"min": 1,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "uri"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"fixedUri": "http://digitalhealth.gov.au/fhir/cc/StructureDefinition/medication-formula-string",
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"short": "Medication formula text",
"definition": "Compounded medication formula captured from CDA entryRelationship/act with code 103.16272 or act with displayName 'Formula'. Contains the textual representation of the medication formula.",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
}
]
},
"differential": {
"element": [
{
"id": "Extension",
"path": "Extension",
"short": "Medication Formula String",
"definition": "Captures compounded medication formulas from CDA entry relationships to provide formula information in FHIR Medication resources for the PCEHR Prescription and Dispense View."
},
{
"id": "Extension.extension",
"path": "Extension.extension",
"max": "0"
},
{
"id": "Extension.url",
"path": "Extension.url",
"fixedUri": "http://digitalhealth.gov.au/fhir/cc/StructureDefinition/medication-formula-string"
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"short": "Medication formula text",
"definition": "Compounded medication formula captured from CDA entryRelationship/act with code 103.16272 or act with displayName 'Formula'. Contains the textual representation of the medication formula.",
"type": [
{
"code": "string"
}
]
}
]
}
}